<?php

use yii\db\Migration;
use yii\db\Schema;

class m161230_063314_product_column extends Migration
{
    public function up()
    {

         $this->addColumn('{{product}}', 'code', Schema::TYPE_STRING. "(64) null COMMENT '团号(线路唯一编号)' ");
         $this->addColumn('{{product}}', 'to_city', Schema::TYPE_INTEGER. "(5)  DEFAULT  '0' COMMENT '返回城市 编号' ");
    }

    public function down()
    {
        echo "m161230_063314_product_column cannot be reverted.\n";

        return false;
    }
}
